home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Comm / AmiTCP30b2.lha / netinclude / netinet / in_systm.h next >
C/C++ Source or Header  |  1993-08-01  |  3KB  |  81 lines

  1. /*
  2.  * $Id: in_systm.h,v 1.2 1993/03/03 21:47:28 jraja Exp $
  3.  *
  4.  * HISTORY
  5.  * $Log: in_systm.h,v $
  6.  * Revision 1.2  1993/03/03  21:47:28  jraja
  7.  * Added #ifndef to prevent multiple inclusion.
  8.  * ~.
  9.  *
  10.  * Revision 1.2  1993/03/03  21:47:28  jraja
  11.  * Added #ifndef to prevent multiple inclusion.
  12.  * ~.
  13.  *
  14.  * Revision 1.1  92/11/17  16:29:15  16:29:15  jraja (Jarno Tapio Rajahalme)
  15.  * Initial revision
  16.  * 
  17.  *
  18.  */
  19.  
  20. /*
  21.  * Copyright (c) 1982, 1986 Regents of the University of California.
  22.  * All rights reserved.
  23.  *
  24.  * Redistribution and use in source and binary forms, with or without
  25.  * modification, are permitted provided that the following conditions
  26.  * are met:
  27.  * 1. Redistributions of source code must retain the above copyright
  28.  *    notice, this list of conditions and the following disclaimer.
  29.  * 2. Redistributions in binary form must reproduce the above copyright
  30.  *    notice, this list of conditions and the following disclaimer in the
  31.  *    documentation and/or other materials provided with the distribution.
  32.  * 3. All advertising materials mentioning features or use of this software
  33.  *    must display the following acknowledgement:
  34.  *    This product includes software developed by the University of
  35.  *    California, Berkeley and its contributors.
  36.  * 4. Neither the name of the University nor the names of its contributors
  37.  *    may be used to endorse or promote products derived from this software
  38.  *    without specific prior written permission.
  39.  *
  40.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  41.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  42.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  43.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  44.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  45.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  46.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  47.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  48.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  49.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  50.  * SUCH DAMAGE.
  51.  *
  52.  *    @(#)in_systm.h    7.4 (Berkeley) 6/28/90
  53.  */
  54.  
  55. #ifndef IN_SYSTM_H
  56. #define IN_SYSTM_H
  57.  
  58. /*
  59.  * Miscellaneous internetwork
  60.  * definitions for kernel.
  61.  */
  62.  
  63. /*
  64.  * Network types.
  65.  *
  66.  * Internally the system keeps counters in the headers with the bytes
  67.  * swapped so that VAX instructions will work on them.  It reverses
  68.  * the bytes before transmission at each protocol level.  The n_ types
  69.  * represent the types with the bytes in ``high-ender'' order.
  70.  */
  71. typedef u_short n_short;        /* short as received from the net */
  72. typedef u_long    n_long;            /* long as received from the net */
  73.  
  74. typedef    u_long    n_time;            /* ms since 00:00 GMT, byte rev */
  75.  
  76. #ifdef KERNEL
  77. n_time    iptime(void);
  78. #endif
  79.  
  80. #endif /* !IN_SYSTM_H */
  81.